//
//  CTabBar.h
//  CWeekly
//
//  Created by  on 12-4-10.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CTabBarItem.h"
@protocol CTabBarDelegate;
@interface CTabBar : UIToolbar{
    NSMutableArray*barItems;
    id<CTabBarDelegate>delegate;
    NSMutableArray*barButtonItems;
}
-(void)itemSelected:(CTabBarItem*)sender;
@property(nonatomic,retain) NSMutableArray*barButtonItems;
@property(nonatomic,assign)id<CTabBarDelegate>delegate;
@end
@protocol CTabBarDelegate <NSObject>

-(void)barSelectAtIndex:(NSInteger) index;
@end